﻿using System;
using System.Net;

namespace BusinessConfiguration
{
    public class Configuration
    {
        public static string CultureInfo = "vi";
        public static string GridViewFetchMode = "GridViewFetchMode";
        public static string ComboboxFetchMode = "ComboboxFetchMode";
        public static string ChildWindow = "ChildWindow";
        public static string ComboBoxFilterMode = "ComboBoxFilterMode";
        public static string PhanBoChiPhiMode = "PhanBoChiPhiMode";
        public static string NormalSaveMode = "NormalSaveMode";
        public static string GhiSoSaveMode = "GhiSoSaveMode";
        public static string TinhGiaVonMode = "TinhGiaVonMode";
        public static string KhauHaoFilterMode = "KhauHaoFilterMode";
        public static string KyGiaThanhFilterMode = "KyGiaThanhFilterMode";
        public static string CPTrucTiepFilterMode = "CPTrucTiepFilterMode";
        public static string CPPhanBoFilterMode = "CPPhanBoFilterMode";
        public static string KetChuyenCPFilterMode = "KetChuyenCPFilterMode";
        public static string DoDangDKFilterMode = "DoDangDKFilterMode";
        public static string SoLuongSPDDFilterMode = "SoLuongSPDDFilterMode";
        public static string DoDangCKFilterMode = "DoDangCKFilterMode";

        public static int LoaiChungTuId_ChungTuNghiepVuKhac = 501;
        public static int LoaiChungTuId_MSP_MuaHangHoa = 301;
        public static int LoaiChungTuId_MSP_MuaDichVu = 302;
        public static int LoaiChungTuId_BSP_BanHangHoa = 401;
        public static int LoaiChungTuId_BSP_BanDichVu = 402;
        public static int LoaiChungTuId_TM_PhieuChi = 102;
        public static int LoaiChungTuId_TM_PhieuThu = 101;
        public static int LoaiChungTuId_NH_GiayCo = 202;
        public static int LoaiChungTuId_NH_GiayNo = 201;
        public static int LoaiChungTuId_K_PhieuXuatKho = 602;
        public static int LoaiChungTuId_K_PhieuNhapKho = 601;
        public static int LoaiChungTuId_K_PhieuChuyenKho = 603;
        public static int LoaiChungTuId_GT_KyGiaThanh = 700;
        public static int LoaiChungTuId_TSCD_MuaTaiSan = 701;
        public static int LoaiChungTuId_TSCD_GhiTang = 702;
        public static int LoaiChungTuId_TSCD_GhiGiam = 703;
        public static int LoaiChungTuId_TSCD_KhauHao = 705;
        public static int LoaiChungTuId_TSCD_DieuChinh = 704;
        public static int LoaiChungTuId_THUE_BangKeMuaVao = 801;
        public static int LoaiChungTuId_THUE_BangKeBanRa = 802;
        public static int LoaiChungTuId_THUE_KhauTru = 803;
        public static int LoaiChungTuId_GT_DoDangDK = 804;
        public static int LoaiChungTuId_GT_CPTrucTiep = 901;
        public static int LoaiChungTuId_GT_CPPhanBo = 902;
        public static int LoaiChungTuId_GT_KetChuyenCP = 903;

        public static string CHITIET = "CHITIET";
        public static string THUE_GTGT = "THUE_GTGT";
        public static string THUE_NK = "THUE_NK";
        public static string THUE_TTDB = "THUE_TTDB";
        public static string PHUPHI = "PHUPHI";
        public static string THIEU_CXL = "THIEU_CXL";
        public static string THUA_CXL = "THUA_CXL";
        public static string NGOAIBANG = "NGOAIBANG";

        public static string ThaoTac_ChinhSua = "Chỉnh sửa";
        public static string ThaoTac_Xoa = "Xóa";

        public static string DieuKienLocNCC_KhachHang = "KhachHang";
        public static string DieuKienLocNCC_NhaCungCap = "NhaCungCap";
        public static string DieuKienLocNCC_TatCa = "TatCa";

        public static string BSP_BanDichVu_TableName = "BSP_BanDichVu";
        public static string K_PhieuXuatKho_TableName = "K_PhieuXuatKho";

        public static bool LaChungTuGhiTangCongNo(int loaiChungTuId)
        {
            if (loaiChungTuId == LoaiChungTuId_MSP_MuaHangHoa)
                return true;
            else if (loaiChungTuId == LoaiChungTuId_MSP_MuaDichVu)
                return true;
            else if (loaiChungTuId == LoaiChungTuId_BSP_BanDichVu)
                return true;
            else if (loaiChungTuId == LoaiChungTuId_BSP_BanHangHoa)
                return true;
            else
                return false;
        }

        public static bool LaChungTuGhiGiamCongNo(int loaiChungTuId)
        {
            if (loaiChungTuId == LoaiChungTuId_TM_PhieuChi)
                return true;
            else if (loaiChungTuId == LoaiChungTuId_TM_PhieuThu)
                return true;
            else if (loaiChungTuId == LoaiChungTuId_NH_GiayCo)
                return true;
            else if (loaiChungTuId == LoaiChungTuId_NH_GiayNo)
                return true;
            else
                return false;
        }

        public static bool LaChungTuGhiTangKyGui(int loaiChungTuId)
        {
            return false;
        }

        public static bool LaChungTuGhiGiamKyGui(int loaiChungTuId)
        {
            return false;
        }
    }
}
